import { createRouter, createWebHistory } from 'vue-router';

// 导入你的 Vue 组件（懒加载推荐）
const rootPage = () => import('@/views/audio/audio.vue');
const audio = () => import('@/views/audio/audio.vue');

const routes = [
    {
        path: '/',
        name: 'Home',
        component: rootPage,
    },
    {
        path: '/audio',
        name: 'audio',
        component: audio,
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;